package global

import (
	"context"
	"fmt"
	"github.com/go-redis/redis/v8"
	"gorm.io/gorm"
)

var (
	DB  *gorm.DB
	Rdb *redis.Client
)

func PubShortVideo(video map[string]interface{}) error {

	key := fmt.Sprintf("%v", video)
	return Rdb.HSet(context.Background(), key).Err()
}
